﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Dack_Web2.DTO;
using Dack_Web2.DAO;

namespace Dack_Web2.BUS
{
    public class KhachHangBUS
    {
        public void Insert(KhachHangDTO tmp)
        {
            KhachHangDAO dao = new KhachHangDAO();
            dao.Insert(tmp);
        }

        public void Update(KhachHangDTO tmp)
        {
            KhachHangDAO dao = new KhachHangDAO();
            dao.Update(tmp);
        }

        public void Delete(KhachHangDTO tmp)
        {
            KhachHangDAO dao = new KhachHangDAO();
            dao.Delete(tmp);
        }
        public static KhachHangDTO GetKhachHang(string TenDangNhap)
        {
            return KhachHangDAO.GetKhachHang(TenDangNhap);
        }
    }
}